<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="p" uri="/WEB-INF/tld/pagination.tld"%>  

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title><s:text name="核算项目--供应商"></s:text>
		</title>
		<link rel="stylesheet" type="text/css" href="css/public.css">
		<script type="text/javascript" src="js/sorttable.js"></script>
		<script language="JavaScript" src="js/public.js"></script>
		<script type="text/javascript" src="js/date1.js"></script>
	</head>
	<body>
		<div id="info_all">
			<div id="info_top">
				<s:text name="核算项目--供应商"></s:text>
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<div id="btn">
				<input type="button" value="新增"
					onClick="addAction('showAddSupplier')" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="修改"
					onClick="updateAction('showEditSupplier')" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="删除"
					onClick="deleteAction('deleteSupplier')" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
			</div>
			<div id="info_main">
				<!-- 信息显示栏 -->
				<!-- 查询栏 -->
				<s:form action="getSupplierByCondition.action" method="post" theme="simple">
					<div id="select">
						<hr>
						<table>
							<tr>
								<td>
									<s:text name="代码"></s:text>
									&nbsp;
								</td>
								<td>
									<s:textfield name="supplierModel.supplierCode" size="12"></s:textfield>
								</td>
								<td>
									<s:text name="名称"></s:text>
									&nbsp;
								</td>
								<td>
									<s:textfield name="supplierModel.supplierName" size="12"></s:textfield>
								</td>
								<td>
									<s:text name="区域"></s:text>
									&nbsp;
								</td>
								<td>
									<s:textfield name="" size="15" readonly="true" id="areaName"></s:textfield>
								<s:hidden name="supplierModel.PBaseAssistantmaterialAreaId" id="areaId"></s:hidden>
								<img src="images/kookup.gif" style="cursor: pointer"
									onclick="openWin('selectArea.action','department',970,500,1)">
								</td>
								<td>
									<s:text name="地址"></s:text>
									&nbsp;
								</td>
								<td>
									<s:textfield name="supplierModel.address" size="12"></s:textfield>
								</td>

							</tr>
						</table>

					</div>
					<div class="sele">
						<s:submit value="查询" onfocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" id="btnsize"></s:submit>


						<input type="reset" value="重置" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />
						<hr>
					</div>
				</s:form>
				<!-- 信息显示栏 -->
				<div id="info_info1">
					<table id="info_table" width="2000px" cellspacing=1px
						cellpadding=1px class="sortable">
						<thead>
							<tr>
								<th>
									<input type="checkbox" onClick="selectAll()" />
								</th>
								<th width="80px">
									代码
								</th>
								<th width="100px">
									名称
								</th>
								<th width="80px">
									简称
								</th>
								<th width="80px">
									地址
								</th>
								<th width="70px">
									区域
								</th>
								<th width="75px">
									行业
								</th>
								<th width="90px">
									联系人
								</th>
								<th width="90px">
									电话
								</th>
								<th width="90px">
									传真
								</th>
								<th width="80px">
									信用额度
								</th>
								<th width="80px">
									结算期限
								</th>
								<th width="60px">
									邮编
								</th>
								<th width="90px">
									邮件地址
								</th>
								<th width="80px">
									开户银行
								</th>
								<th width="90px">
									银行账号
								</th>
								<th width="110px">
									税务登记号
								</th>
								<th width="100px">
									增值税率(%)
								</th>
								<th width="80px">
									省份
								</th>
								<th width="80px">
									国家
								</th>
								<th width="80px">
									法人代表
								</th>
								<th width="80px">
									部门
								</th>
								<th width="70px">
									业务员
								</th>
							</tr>
						</thead>

						<tbody>
							<s:form id="delrow" theme="simple">
								<s:if test="!supplierList.isEmpty">
									<s:iterator value="supplierList">
										<tr>
											<td>
												<s:checkbox name="rowlist"
													fieldValue="%{supplier.supplierId}" theme="simple"
													value="false" />
											</td>
											<td>
												<s:property value="supplier.supplierCode" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.supplierName" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.supplierBrief" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.address" />
												&nbsp;
											</td>
											<td>
												<s:property value="area.areaName" />
												&nbsp;
											</td>
											<td>
												<s:property value="industry.industryName" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.linkman" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.phone" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.fax" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.creditNum" />
												&nbsp;
											</td>
											<td>
												<s:property value="bala.balanceDeadLineName" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.post" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.mailAddress" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.openAccountBank" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.bankAccount" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.taxRegisterNo" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.increaseTaxPercent" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.province" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.country" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.responsibleMan" />
												&nbsp;
											</td>
											<td>
												<s:property value="dept.departmentName" />
												&nbsp;
											</td>
											<td>
												<s:property value="cadiate.candiateName" />
												&nbsp;
											</td>
										</tr>
									</s:iterator>
								</s:if>
							</s:form>
						</tbody>

						<tfoot>

						</tfoot>
					</table>
<s:if test="!supplierList.isEmpty">
							<tr style="font-size: 12px;">

								<div align="center">
									<font color="#FF0000"> 共<s:property value="page.total" /> 页 第
										<s:property value="page.cpage" /> 页 <p:page cpage="%{page.cpage}"
											total="%{page.total}" url="%{page.url}" /> </font>

								</div>
							</tr>
						</s:if>
					<script language="javascript">
	//("表格名称","奇数行背景","偶数行背景","点击后背景");
	mouseclick("info_table", "#ffffff", "#ffffff", "#e6f0fd");
	//("表格名称","奇数行背景","偶数行背景");
	//setcolor("t","#ffffff","#ffffff");
</script>
				</div>
			</div>
		</div>
	</body>
</html>
